import request from '@/utils/request'

export const identityCreateService = (identity) => {
  return request.post('/op/identity', identity)
}

export const identityDeleteService = (id) => {
  return request.delete(`/op/identity/${id}`)
}

export const identityUpdatePasswordService = (id, password) => {
  return request.put('/op/identity/password', { id, password })
}

export const identityGetListService = () => {
  return request.get('/op/identity')
}